﻿#region Copyright Information
// // ****************************************************************
// // Feel free to extend or modify the code of the application to your needs. 
// // But remember do it for the Glory of our Lord Jesus Christ
// // ****************************************************************
#endregion

#region Usings

using System.Linq;
using System.Windows;
using Interfaces.Services;
using Utils.ServiceLocator;

#endregion

namespace UI
{
	/// <summary>
	/// Interaction logic for ScreenManager.xaml
	/// </summary>
	public partial class ScreenManager
	{
		/// <summary>
		/// 
		/// </summary>
		public ScreenManager()
		{
			InitializeComponent();

			var screens = ServiceLocator.Instance.Get<IScreenManager>().GetScreens().Select(name => name.DeviceName);

			Screens.SelectedItem = screens.First();
			Screens.ItemsSource = screens;
			// TODO shouls select the name of the device stored in the configuration file.
			// If there is none use the upper functionality.
		}
	}
}
